const {getEssay} = require('../service/essay')
class Essay{
    async getEssay(ctx,next){
        console.log(ctx.request.body);
        const {id} = ctx.request.body
      ctx.body =  await getEssay(id);
    }
}
module.exports = new Essay();